package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.ZxHuopin;
import cn.stylefeng.guns.sys.modular.system.model.params.ZxHuopinParam;
import cn.stylefeng.guns.sys.modular.system.model.result.ZxHuopinResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 装修货品表 服务类
 * </p>
 *
 * @author jiangge
 * @since 2020-11-02
 */
public interface ZxHuopinService extends IService<ZxHuopin> {

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    void add(ZxHuopinParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    ResponseData delete(ZxHuopinParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    void update(ZxHuopinParam param);

    void updateGhs(ZxHuopinParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    ZxHuopinResult findBySpec(ZxHuopinParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2020-11-02
     */
    List<ZxHuopinResult> findListBySpec(ZxHuopinParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-11-02
     */
     LayuiPageInfo findPageBySpec(ZxHuopinParam param);

    List<ZxHuopinResult> ghsPageList(ZxHuopinParam param);

    /**
     * 根据门店获取货品列表
     * @param
     * @return
     */
    List<Map<String,Object>> listHuopinSelect();

    void update(String btyZxHuopinId, Long btyZxKemuId, String btyZxKemuIdView);

    void updateJgc(String btyZxHuopinId, String isJgc);

    /**
     * 新增
     *
     * @author zxd
     * @Date 2022-04-24
     */
    String add1(ZxHuopinParam param);

    /**
     * 名称查询列表
     *
     * @author zxd
     * @Date 2022-04-27
     */
    List<ZxHuopin> selectListByName(ZxHuopinParam param);
}
